package com.springboot.quanxian.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.springboot.quanxian.entity.SysMenu;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 菜单权限表 Mapper 接口
 * </p>
 *
 * @author astupidcoder
 * @since 2021-06-17
 */
public interface SysMenuMapper extends BaseMapper<SysMenu> {
    /**
     * 根据当前用户展示菜单
     * @param managerId
     * @return
     */
    List<SysMenu> getMenuTree(@Param("managerId") String managerId);

}
